#include "log.h"
#include <iostream>

int main()
{
    int ret = -1;
    Log *log = Log::get_instance();

    bool write_file_enable = true;
    ret = log->set(LW_SET_ENABLE_FILE_WRITE, (void *)&write_file_enable);
    log->init();
    log->start();

    lw_debug("debug");
    lw_info("info");
    lw_warn("warn");
    lw_error("error");
    lw_fatal("fatal");

    log->stop();
    log->uninit();

    return 0;
}